import { CONFIG } from 'api/config'

// 获取微信授权
export function getWeChatOauth() {
  // const uuAppId = localStorage.uuAppId
  const uuAppId = 10
  let WeChatOauthUrl = `${CONFIG.DOMAIN}WeChat/component/user/${uuAppId}/toOauth?requesturl=`
  let url = window.location.href
  // console.log(WeChatOauthUrl + encodeURIComponent(window.location.href))
  setTimeout(() => {
    window.location.href = WeChatOauthUrl + encodeURIComponent(url)
  }, 500)
}